import PlayScene from "./gameplay/scenes/playScene";

window.onload = function() {
  const loading = document.querySelector('#loading') as HTMLElement;
  loading.style.display = 'none';

  const playScene = new PlayScene();

  function update() {
    playScene.update();
    playScene.draw();
  }
  
  function mainLoop() {
    update();
    requestAnimationFrame(mainLoop);
  }
  
  requestAnimationFrame(mainLoop);
};